package com.ming.springcloud.consumer.hystric;

import com.ming.springcloud.consumer.service.BookService;
import com.ming.springcloud.consumer.vo.Books;
import org.springframework.stereotype.Component;

@Component
public class BookServiceHystric implements BookService {
    @Override
    public String findAllBooks(String name) {
        return "服务不可用 " + name;
    }

    @Override
    public String findBooksById(String name, Integer id) {
        return "服务不可用 " + name;
    }

    @Override
    public String delBook(String name, Integer id) {
        return "服务不可用 " + name;
    }

    @Override
    public String editBook(String name, Books book) {
        return "服务不可用 " + name;
    }

    @Override
    public String addBook(String name, Books book) {
        return "服务不可用 " + name;
    }
}
